package com.htd.htdapmapi.alarm.dto;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;

@Data
public class ZabbixDto implements Serializable {



	/**
	 * 
	 */
	private static final long serialVersionUID = -7001944730291091132L;

	private String app;

	private String eventId;

	private String eventType;
	
	private String eventTime;

	private String alarmName;
	
	private String entityName;

	private String entityId;
	
	private String alarmContent;
	
	private String priority;
	
	private String host;
	
	private List<TagDto> tag;
	
	private String agentVersion;
	
	private String service;
	
	private String ip;
	
	private String itemName;
	
	private String itemValue;
	
	private String alarmStatus;
	
	/**
	 * 告警时间ID，用做ES的ID 方便后面更新ES
	 */
	private String alarmsId;
	
	/**
	 * 数据来源
	 */
	private String sourceFrom;
	
	private String alarmTime;
	
	
    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
